<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>用户欢迎页面</title>
</head>
<%--实训01--%>
<%
    String username = request.getParameter("username");
    if(username != null && !username.isEmpty()) {
        out.println("欢迎，" + username + "！");
    } else {
        out.println("欢迎访问，未提供用户名！");
    }
    session.setAttribute("loggedIn", true);
    session.setAttribute("username", request.getParameter("username"));
    session.setAttribute("password", request.getParameter("password"));
%>
</body>
</html>